#pragma once

#define MAX_CODE_LEN 256
struct CODE_SEARCH
{
    const char* pName;
    void**      ppFunction;
    const char* pCodeSearch;
    const char* pCodeIgnore;

    BOOL IsValid() 
    {
        return (pCodeSearch && pCodeSearch[0]) && (pCodeIgnore && pCodeIgnore[0]);
    }

    BOOL IsTerminator()
    {
        return (this==NULL) || (ppFunction==NULL);
    }
};

class CSearchCode
{
public:
    void Search(CODE_SEARCH* pSearch, const char* logfilename);

    void SearchWOW();
};